/**
 * 选择素材
 * @param selectType 选择类型  radio ,checkbox
 * @param subjectIds 专业ID串
 * @param type 类型，1模块选择素材，2课程选择素材
 * @param courseId 课程ID
 * @param mouldId 模块ID
 */
function selectMaterial(type,courseId,mouldId,selectType,subjectIds) {
    parent.layer.open({
        type: 2,
        shadeClose: false,
        shade: [0.3, '#000000'],
        title: '<strong>选择素材</strong>',
        area: winArea,
        maxmin: true,
        content: baseloaction + "/admin/course/material/selectMaterialList?type="+type+"&courseId="+courseId+"&mouldId="+mouldId+"&selectType="+selectType+"&subjectIds="+subjectIds,
        btn: ['选择', '取消'],
        yes: function(index, layero) {
            var _iframe = layero.find("iframe:visible");
            var iframeName = _iframe[0].name;
            var material = parent.frames[iframeName].getSelectMaterial();
            if(material){
                var currentIframeName = contentMainIframeName();
                parent.frames[currentIframeName].selectMaterialCallback(material);
                parent.layer.close(index);
            }
        }
    });
}